﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    enum NPCtype
    {
         Task,
         Shop,
         Iron 

    }
    abstract  class NPC
    {
        private string name;
        private NPCtype type;

       public string Name
        {
            get { return this.name;  }
            set { this.name = value; }
        }
        public NPCtype Type
        {
            get { return this.type; }
            set { this.type = value; }
        }
        public NPC(string name, NPCtype type) 
        {   
            this.Name = name;
            this.Type = type;
        }
        public abstract void Speak();
      


    }
}
